package org.zoomdev.zoom.web.parameter.pre.impl;

import org.zoomdev.zoom.web.parameter.PreParameter;

import java.util.Map;
import java.util.Set;

public final class MapPreParameter implements PreParameter {

    private final Map<String, Object> map;

    public MapPreParameter(Map<String, Object> data) {
        this.map = data;
    }

    @Override
    public Object get(String key) {
        return map.get(key);
    }

    @Override
    public Set<String> getKeys() {
        return map.keySet();
    }

    @Override
    public Object getRaw() {
        return map;
    }

    @Override
    public Map<String, Object> getMap() {
        return map;
    }
}
